package com.hoshiicloud.rbac.vo;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysRolesDetailVO对象", description = "角色")
public class SysRolesDetailVO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@TableId("id")
	private Long id;

	@ApiModelProperty(value = "角色分类(1-saas角色 2-租合角色 3-平台角色 4-其他")
	@TableField("type")
	private Integer type;

	@ApiModelProperty(value = "关联id  按角色分类")
	@TableField("relate_id")
	private Long relateId;

	@ApiModelProperty(value = "角色名称")
	@TableField("name")
	private String name;

	@ApiModelProperty(value = "角色标题")
	@TableField("title")
	private String title;

	@ApiModelProperty(value = "角色描述")
	@TableField("description")
	private String description;

	@ApiModelProperty(value = "排序")
	@TableField("orders")
	private Long orders;

	@ApiModelProperty(value = "创建时间")
	@TableField("add_time")
	private LocalDateTime addTime;

	@ApiModelProperty(value = "更新时间")
	@TableField("update_time")
	private LocalDateTime updateTime;

	@ApiModelProperty(value = "版本号")
	@TableField("version")
	private Integer version;

}
